﻿@using Inovout.Web.Mvc.Html
@model TreeNode
@if (Model is Tree)
{
    <ul class="easyui-tree tree-nobackground" data-options="animate:true,checkbox:true" id="uitree">
        <li id="@Model.Key">
            <span>@Model.Content</span>
            @foreach (var node in Model.Children)
            {
                @Html.Tree(node)
            }
        </li>
    </ul>
}
else
{
    <ul class="treenode" data-options="animate:true,checkbox:true">
        <li id="@Model.Key">
            <span>@Model.Content</span>
            @foreach (var node in Model.Children)
            {
                @Html.Tree(node)
            }
        </li>
    </ul>
}

